import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'

export default [
  {
    name: 'app/files-to-lint',
    files: ['**/*.{js,mjs,jsx,vue}'],
  },

  {
    name: 'app/files-to-ignore',
    ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
  },

  js.configs.recommended,
  {
    ...pluginVue.configs['flat/essential'],
    rules: {
      // 移除或覆盖强制 Vue 组件命名的规则
      'vue/component-name-in-template-casing': 'off',
    },
  },
]